package com.wang.action;

import com.wang.entity.TbBbsLive;
import com.wang.response.ResultResponse;
import com.wang.service.TbBbsLiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bbs")
public class BbsLiveAction {
    @Autowired
    private TbBbsLiveService tbBbsLiveService;
   //点赞
    @PostMapping("insertbbslive")
    private ResultResponse insertbbslive(@RequestBody TbBbsLive tbBbsLive){
       return tbBbsLiveService.insertbbslive(tbBbsLive);
    }
//    //取消点赞
//    @PostMapping("removebbslive")
//    private  ResultResponse removebbslive(@RequestBody TbBbsLive tbBbsLive){
//        return tbBbsLiveService.removebbslive(tbBbsLive);
//    }
    //查询点赞
    @PostMapping("findbbslive")
    private ResultResponse findbbslive(@RequestBody TbBbsLive tbBbsLive){
        return tbBbsLiveService.findbbslive(tbBbsLive);
    }
    //查询所有点赞
    @PostMapping("findbbsliveall")
    private ResultResponse findbbsliveall(@RequestBody TbBbsLive tbBbsLive){
         return tbBbsLiveService.findbbsliveall(tbBbsLive);
    }
}
